home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2000 November / cd joystick no120 novembre 2000 cd 1.iso / data / demos / gunlok / data1.cab / Program_Executable_Files / scripts / guardian_turret.gsh < prev    next >
Text File  |  2000-08-22  |  2KB  |  69 lines

  1. // defines Turret
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_GUARDIAN_TURRET_GSH
  8. #define INCLUDED_GUARDIAN_TURRET_GSH
  9.  
  10. #include "lasers.gsh"
  11. #include "defaults.gsh"
  12.  
  13. ////////////////////////////////////////////////////////////////////////////////////
  14.  
  15. hierarchy Hcy_Guardian_Turret
  16. {
  17.     file "units\guardian turret.RIF"
  18.     name "Guardian Turret"
  19.     hotspot "Dum Flash"
  20. }
  21.  
  22. character Chr_Guardian_Turret : Chr_DefaultBaddie
  23. {
  24.     turning speed   0.12
  25.     walking speed   0    // doesn't move
  26.     weapon          enemy laser
  27.     strength        10    // one shot and it's destroyed
  28.     aim             0    // spot on!
  29.     sight angle    90    // in degrees
  30.     sight range     15    // in metres
  31.     hearing range    22    // in metres
  32.     aggression    1    // from 0 to 1
  33. }
  34.  
  35. character Chr_Small_Guardian_Turret : Chr_DefaultBaddie
  36. {
  37.     turning speed   0.12
  38.     walking speed   0    // doesn't move
  39.     weapon          enemy laser
  40.     strength        5    // one shot and it's destroyed
  41.     aim             0    // spot on!
  42.     sight angle        90    // in degrees
  43.     sight range     13    // in metres
  44.     hearing range    19    // in metres
  45.     aggression        1    // from 0 to 1
  46.     size            0.5    // half size
  47. }
  48.  
  49. role Rol_Guardian_Turret : Rol_DefaultRobot
  50. {
  51.     shape            Hcy_Guardian_Turret
  52.     character        Chr_Guardian_Turret
  53.     ai                bot
  54.     identifier        "Guardian_Turret"
  55. }
  56.  
  57. role Rol_Small_Guardian_Turret : Rol_DefaultRobot
  58. {
  59.     shape            Hcy_Guardian_Turret
  60.     character        Chr_Small_Guardian_Turret
  61.     ai                bot
  62.     identifier        "Small_Guardian_Turret"
  63. }
  64.  
  65. ////////////////////////////////////////////////////////////////////////////////////
  66.  
  67. // end wrapper - for preventing multiple or recursive inclusions
  68. #endif // !INCLUDED_Guardian_TURRET_GSH
  69.